import Request from '@/utils/request'

export function infoList(params) {
    return Request.get(
        'info/list',
        params
    )
}

export function infoAdminDetail(info_id) {
    return Request.get(
        `info/list/${info_id}`,
    )
}

export function infoDetail(params) {
    return Request.get(
        `info/detail`,
        params
    )
}

export function infoAdd(params) {
    return Request.post(
        'info/add',
        params
    )
}

export function infoEdit(info_id,params) {
    return Request.put(
        `info/edit/${info_id}`,
        params
    )
}

export function infoDelete(info_id) {
    return Request.delete(
        `info/edit/${info_id}`,
    )
}